//
//  MyTextField.m
//  KPBaseProject
//
//  Created by 孑孓 on 2018/4/10.
//  Copyright © 2018年 Kipp. All rights reserved.
//

#import "MyTextField.h"

@implementation MyTextField

- (CGRect)textRectForBounds:(CGRect)bounds
{
    CGRect inset = CGRectMake(bounds.origin.x+15, bounds.origin.y, bounds.size.width - 25, bounds.size.height);
    return inset;
}


-(CGRect)editingRectForBounds:(CGRect)bounds
{
    CGRect inset = CGRectMake(bounds.origin.x+15, bounds.origin.y, bounds.size.width - 25, bounds.size.height);
    return inset;
}

-(CGRect)placeholderRectForBounds:(CGRect)bounds
{
    
    CGRect inset = CGRectMake(bounds.origin.x+15, bounds.origin.y, bounds.size.width, bounds.size.height);
    return inset;
}

//-(CGRect)rightViewRectForBounds:(CGRect)bounds
//{
//    UIImage *image = kGetImage(@"ic_search.png");
//    CGFloat imageW = image.size.width;
//    CGFloat imageH = image.size.height;
//    CGRect inset = CGRectMake(bounds.size.width - SYRealValue(15 / 2) - imageW, (bounds.size.height - imageH) / 2, imageW, imageH);
//    return inset;
//}

@end
